<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<script type="text/javascript">
</script>
<div>
	<form id="f_rankRule" action="<c:url value='/admin/rrule/save.do'/>" method="post">
		<input type="hidden" name="rule.rankRuleId" value="${rule.rankRuleId}">
		<table id="t_rankRule_detail">
			<tr>
				<th width="75px">VIP等级</th>
				<td><input type="text" name="rule.levels" value="${rule.levels}"/></td>
			</tr>
			<tr>
				<th width="75px">等级称号</th>
				<td><input type="text" name="rule.rankName" value="${rule.rankName}"/></td>
			</tr>
			<tr>
			<th width="75px">分数</th>
				<td>
					<input type="text" name="rule.score" value="${rule.score}"/>
				</td>
			</tr>
			<tr>
			<th width="75px">是否可用</th>
				<td>
					<input type="checkbox" id="f_rule_enabled" name="rule.enabled" value="1"/>
					<script type="text/javascript">
						var ruleEnabled = "<c:out value='${rule.enabled}' />";
						var ruleEnabledValue = parseInt(ruleEnabled);
						if(ruleEnabledValue == 1){
							$("#f_rule_enabled").attr("checked",true);
					  	}
					</script>
				</td>
			</tr>
			<tr>
			<th width="45px">描述</th>
				<td><input type="text" name="rule.description" value="${rule.description}"/></td>
			</tr>
			<tr>
				<td><input type="submit" name="保存" value="保存"/></td>
			</tr>
		</table>
	</form>
</div>
